package com.xxh.book.service.impl;

import com.xxh.book.dao.AdminDao;
import com.xxh.book.entity.Admin;
import com.xxh.book.service.AdminService;
import com.xxh.book.utils.MbUtil;

public class AdminServiceImpl implements AdminService {

    AdminDao adminDao = MbUtil.getSqlSession().getMapper(AdminDao.class);
    @Override
    public Admin Login(Admin admin) {

        Admin admin1 = adminDao.selectByEntity(admin);
        return admin1;
    }
}
